home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 2
/
AACD 2.iso
/
AACD
/
WebSites
/
Sites
/
Wirenet
/
files
/
Wirenet15.lzx
/
Updates
/
StartNet
< prev
next >
Wrap
Text File
|
1984-08-05
|
1KB
|
47 lines
; $VER: StartNet 1.5 (01.09.96)
; Starts up AmiTCP or Miami and sets everything up ready to connect to Internet
If $NetState EQ "NoNet"
If exists "ENV:Wirenet/UseMiami"
;Start Miami
Run >NIL: AmiTCP:Miami
Wait 3
WaitForPort MIAMI.1
Else
; Start AmiTCP
Assign APIPE: Exists > NIL:
IF Warn
Mount APIPE: from AmiTCP:devs/APipe-Mountlist
EndIf
; log in
AmiTCP:bin/login -f $USERNAME
AmiTCP:bin/umask 022
; start AmiTCP
AmiTCP:AmiTCP
WaitForPort AMITCP
; Configure loop-back device
AmiTCP:bin/ifconfig lo0 localhost
; Add IP address entry for this host
rx "address AMITCP; 'ADD HOST $IPAddress $HostName'"
; Add route to this host
AmiTCP:bin/route add $IPAddress localhost
Assign TCP: Exists > NIL:
IF Warn
Mount TCP: from AmiTCP:devs/Inet-Mountlist
EndIf
; Start the internet `super server'
run >NIL: AmiTCP:bin/inetd
EndIf
SetEnv NetState Offline
If Exists AmiTCP:db/User-Startnet
AmiTCP:db/User-Startnet
EndIf
EndIf